<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>Admin</title>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<link href="<?php echo  base_url();?>css/all.css" rel="stylesheet" type="text/css" />
	<link href="<?php echo  base_url();?>css/lhgcalendar.css" rel="stylesheet" type="text/css" />
    <link href="<?php echo  base_url();?>css/demo.css" rel="stylesheet" type="text/css" />
	<script language="javascript" src="<?php echo base_url();?>js/jquery.js"></script>
	<script language="javascript" src="<?php echo base_url();?>js/jquery.modal.js"></script>
	<script language="javascript" src="<?php echo base_url();?>js/lhgcore.min.js"></script>
    <script language="javascript" src="<?php echo base_url();?>js/lhgcalendar.min.js"></script>
</head>
<body>
<div id="main">
	<div id="header">
		<ul id="top-navigation">
			    <li <?php if(isset($module)){if($module=='main'&&($template=='index')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>main/index">首页</a></span></span></li>
			<?php if($user[0]->role==0){?>
				<li <?php if(isset($module)){if($module=='model'&&($template=='index'||$template=='model_edit'||$template=='model_add'||$template=='model_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/index">型号管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='category'||$template=='category_edit'||$template=='category_add'||$template=='category_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/category">资料类别管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='version'||$template=='version_edit'||$template=='version_add'||$template=='version_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/version">资料版本管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='complete'||$template=='complete_edit'||$template=='complete_add'||$template=='complete_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/complete">成套资料管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='company'||$template=='company_edit'||$template=='company_add'||$template=='company_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/company">发放单位管理</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='send'||$template=='send_edit'||$template=='send_add'||$template=='send_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/send">资料发放</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='receive'||$template=='receive_edit'||$template=='receive_add'||$template=='receive_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/receive">资料接收</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='inventory')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/inventory">资料库存</a></span></span></li>
				<li <?php if(isset($module)){if($module=='model'&&($template=='admin'||$template=='admin_edit'||$template=='admin_add'||$template=='admin_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/admin">用户管理</a></span></span></li>
			<?php }else{?>
			    <li <?php if(isset($module)){if($module=='model'&&($template=='admin'||$template=='admin_edit'||$template=='admin_add'||$template=='admin_detail')){?> class="active" <?php }}?>><span><span><a href="<?php echo  base_url();?>model/admin_edit/<?php echo $user[0]->admin_id?>">修改资料</a></span></span></li>
			<?php }?>
			    <li><span><span><a><?php echo $user[0]->username;?>&nbsp;您好！</a><a href="<?php echo  base_url();?>main/logout">退出</a></span></span></li>
		</ul>
	</div>
	<div id="middle">
